using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Sys_Task - 定时任务 - 对象继承类
    /// </summary>
    [MetadataType(typeof(SysTaskValidaTion))]
    public class SysTask : ISysTask<SysTask>
    {

      

        #region 生成实体类验证属性
        /// <summary>
        /// 辅助验证类
        /// </summary>
        [Bind]
        public class SysTaskValidaTion
        {



            /// <summary>
            /// 自增
            /// </summary>
            [Display(Name = "自增")]
            [Required]
            [StringLength(36)]
            public String Rowid
            {
                get;
                set;
            }





            /// <summary>
            /// 任务名称
            /// </summary>
            [Display(Name = "任务名称")]
            [Required]
            [StringLength(50)]
            public String Title
            {
                get;
                set;
            }





            /// <summary>
            /// 执行路径
            /// </summary>
            [Display(Name = "执行路径")]
            [StringLength(100)]
            [Required]
            public String RunPath
            {
                get;
                set;
            }





            /// <summary>
            /// 状态
            /// </summary>
            [Display(Name = "状态")]
            [Required]
            [RegularExpression(RegularExpressionString.Int, ErrorMessage = "必须输入数字")]

            public yq.Enums.SysTask.State State
            {
                get;
                set;
            }





            /// <summary>
            /// 类型
            /// </summary>
            [Display(Name = "类型")]
            [Required]
            [RegularExpression(RegularExpressionString.Int, ErrorMessage = "必须输入数字")]

            public yq.Enums.SysTask.Types Types
            {
                get;
                set;
            }





            /// <summary>
            /// 间隔值
            /// </summary>
            [Display(Name = "间隔值")]
            [Required]
            [StringLength(100)]
            public String Interval
            {
                get;
                set;
            }





            /// <summary>
            /// 开始运行时间
            /// </summary>
            [Display(Name = "开始运行时间")]
            [Required]

            public DateTime StartTime
            {
                get;
                set;
            }





            /// <summary>
            /// 创建时间
            /// </summary>
            [Display(Name = "创建时间")]
            [Required]

            public DateTime CreateTtime
            {
                get;
                set;
            }





            /// <summary>
            /// 下次运行时间
            /// </summary>
            [Display(Name = "下次运行时间")]

            public DateTime NextTime
            {
                get;
                set;
            }





            /// <summary>
            /// 运行超时秒数
            /// </summary>
            [Display(Name = "运行超时秒数")]
            [RegularExpression(RegularExpressionString.Int, ErrorMessage = "必须输入数字")]

            public int OutInterval
            {
                get;
                set;
            }





            /// <summary>
            /// 运行超时时间
            /// </summary>
            [Display(Name = "运行超时时间")]

            public DateTime OutTime
            {
                get;
                set;
            }





            /// <summary>
            /// 任务说明
            /// </summary>
            [Display(Name = "任务说明")]
            [StringLength(500)]
            public String Detailed
            {
                get;
                set;
            }





            /// <summary>
            /// json参数
            /// </summary>
            [Display(Name = "json参数")]
            [StringLength(200)]
            public String Json
            {
                get;
                set;
            }





        }
        #endregion 生成实体类验证属性
    }
}
